package com.guigu.server;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

// openFeign配置
@FeignClient(name = "server")
public interface FeignServer {

    // 远程接口
    @GetMapping(value = "/echo/{string}")
    String echo(@PathVariable("string") String string);

    // 远程接口
    @GetMapping(value = "/echo1/{string}")
    String echo1(@PathVariable("string") String string);

}
